﻿<div ng-controller="tokenTransferController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a ui-sref="app.token_transfer.list_audit">提现审核</a></li>
                <li class="active" ng-bind="breadcrumb">详情</li>
            </ol>
        </div>
    </div>


    <form name="_form">
        <div class="form-group ">
            <label class="col-sm-2 control-label">状态</label>
            <div>
                <div style="color:red"> {{model.status_desc}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">昵称</label>
            <div>
                <div> {{model.merchant_name}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">账号</label>
            <div>
                <div> {{model.merchant_mobile}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">提现金额</label>
            <div>
                <div style="color:red"> {{model.transfer_amount}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">手续费/笔</label>
            <div>
                <div style="color:red"> {{model.settle_amount}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">实际到账金额</label>
            <div>
                <div style="color:red"> {{model.amount}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">银行卡户名</label>
            <div>
                <div> {{model.account_name}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">提现银行卡</label>
            <div>
                <div> {{model.account_no}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">银行名称</label>
            <div>
                <div> {{model.bank_name}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">支行地址</label>
            <div>
                <div> {{model.branch_address}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">提现类型</label>
            <div>
                <div> {{model.transfer_type_desc}}</div>
            </div>
        </div>
        <div class="form-group ">
            <label class="col-sm-2 control-label">提交时间</label>
            <div>
                <div> {{model.apply_time}}</div>
            </div>
        </div>
        <hr />
        <div class="form-group col-sm-12">
            <label class="col-sm-2 control-label">状态</label>
            <div class="col-sm-4">
                <select name="status" class="form-control input-sm" ng-model="model.status">
                    <option value="0">待审核</option>
                    <option value="1">已通过未付款</option>
                    <option value="3">未通过</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">审核备注</label>
            <div class="col-sm-10">
                <textarea name="remark" class="form-control " ng-model="model.remark" required></textarea>
            </div>
        </div>
        <hr />

        <div class="form-group col-sm-12" style="margin-top:30px;">
            <h4>分佣记录</h4>
            <div style="float:right;margin-right:10px">收益合计：{{model.total_commission}}</div>
            <div style="float:right;margin-right:10px">待下发合计：{{model.depositing}}</div>
            <table style="table-layout:fixed;" class="table table-hover m-t-md">
                <thead>
                    <tr style="background-color: #f7f7f9;">
                        <th>序号</th>
                        <th>购买人昵称</th>
                        <th>购买人账号</th>
                        <th>获得分佣</th>
                        <th>时间</th>
                    </tr>
                </thead>
                <tbody ng-repeat="item in model.token_transfer_commission_list.rows">
                    <tr>
                        <td>{{$index+1}}</td>
                        <td>{{item.buyer_name}}</td>
                        <td>{{item.buyer_mobile}}</td>
                        <td>{{item.commission}}</td>
                        <td>{{item.create_time}}</td>
                    </tr>
                </tbody>
            </table>
            <div class="row">
                <div class="col-md-12">
                    <uib-pagination total-items="model.token_transfer_commission_list.total_result" items-per-page="model.token_transfer_commission_list.size" ng-model="model.token_transfer_commission_list.page" num-pages="model.token_transfer_commission_list.total_pages"
                                    ng-change="search_transfer_detail_page(model.user_invitation_his_list.page)" class="pagination-sm" boundary-links="true" boundary-link-numbers="true" max-size="30"
                                    previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
                    <span class="pull-right" style="margin: 30px 0px 20px 0px">共{{model.token_transfer_commission_list.total_result}} 当前：{{model.token_transfer_commission_list.page}}/{{model.token_transfer_commission_list.total_pages}}</span>
                </div>
            </div>
        </div>

        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button type="submit" class="btn btn-primary btn-sm" ng-click="audit()" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
                    <i class="fa fa-save"></i> 保存
                </button>
                <button ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 取消</button>
            </div>
        </div>
    </form>

</div>


